<?php

namespace common\models\ar;

use Yii;

/**
 * This is the model class for table "activation_item".
 *
 * @property int $id
 * @property string $name 项目名称
 * @property int $type 1代理，2客户
 * @property int $is_must 是否必需
 * @property int $is_show 是否显示
 * @property int $sort 排序
 */
class ActivationItem extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'activation_item';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['name'], 'required'],
            [['type', 'is_must', 'is_show', 'sort'], 'integer'],
            [['name'], 'string', 'max' => 45],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => '项目名称',
            'type' => '1代理，2客户',
            'is_must' => '是否必需',
            'is_show' => '是否显示',
            'sort' => '排序',
        ];
    }
}
